<extend file='resource/view/admin'/>
<block name="content">
    <ul class="nav nav-tabs" role="tablist">
        <li class="active"><h3>网站管理</h3></li>
    </ul>
    <form action="" method="POST" class="form-horizontal" role="form">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">栏目编辑</h3>
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">栏目名称</label>
                    <div class="col-sm-7">
                        <input type="text" name="cate_name" value="{{$oldData['cate_name']}}" class="form-control" >
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">栏目排序</label>
                    <div class="col-sm-7">
                        <input type="text" name="cate_sort" value="{{$oldData['cate_sort']}}" class="form-control" id="" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">栏目外部链接</label>
                    <div class="col-sm-7">
                        <input type="text" name="cate_linkurl" value="{{$oldData['cate_linkurl']}}" class="form-control" id="" placeholder="">
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">所属栏目</label>
                    <div class="col-sm-7">
                        <select name="cate_pid" id="inputID" class="form-control">
                            <option value="0"> -- 顶级栏目 -- </option>
                            <foreach from="$cateData" value="$d">
                                <option <if value="$oldData['cate_pid']==$d['cate_id']">selected</if> value="{{$d['cate_id']}}"> -- {{$d['_cate_name']}} -- </option>
                            </foreach>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-2 control-label">栏目描述</label>
                    <div class="col-sm-8">
                        <textarea name="cate_description" class="form-control" cols="30" rows="10">{{$oldData['cate_description']}}</textarea>
                    </div>
                </div>
                <button type="submit" class="btn btn-primary">提交</button>
            </div>
        </div>
    </form>
</block>


